package com.chenxin.common.constant;

/**
 * WMS系统常量池
 *
 * @author gry
 */
public class WmsConstants {
    public final static String PROC_SUCCESS = "0";
    /**
     * 校验是否唯一的返回标识
     */
    public final static boolean UNIQUE = true;
    public final static boolean NOT_UNIQUE = false;

    public final static String IB_NO_PREFIX = "I-";
    public final static String OB_NO_PREFIX = "O-";
    public final static String IB_MODULE_CODE = "IB_MASTER_NO";
    public final static String OB_MODULE_CODE = "OB_MASTER_NO";
    /**
     * 下发wcs任务编号 moduleCode
     */
    public final static String WMS_TO_WCS_TASK_NO = "WMS_TO_WCS_TASK_NO";

    /**
     * 库存状态-空闲
     */
    public final static int STOCK_STATUS_IDLE = 0;
    /**
     * 库存状态-预占
     */
    public final static int STOCK_STATUS_PRE = 1;

    public final static String STOCK_PREPARE = "PRE";
    public final static String PREPARE_CANCEL = "CANCEL";
    public final static String OUT_EXEC = "EXEC";

    /**
     * 库存质量-待检
     */
    public final static String STOCK_QA_A = "A";
    /**
     * 库存质量-合格
     */
    public final static String STOCK_QA_B = "B";
    /**
     * 库存质量-让步接受
     */
    public final static String STOCK_QA_C = "C";
    /**
     * 库存质量-不合格
     */
    public final static String STOCK_QA_D = "D";

    /**
     * 任务状态-初始化
     */
    public final static int TASK_STATUS_INIT = 0;
    /**
     * 任务状态-执行中
     */
    public final static int TASK_STATUS_EXEC = 1;
    /**
     * 任务状态-完成
     */
    public final static int TASK_STATUS_DONE = 2;
    /**
     * 任务状态-取消
     */
    public final static int TASK_STATUS_CANCEL = 4;
    /**
     * 任务状态-异常
     */
    public final static int TASK_STATUS_FAIL = 9;

    /**
     * 库区类型-自动库
     */
    public final static String ZONE_TYPE_A = "A";
    /**
     * 库区类型-平库
     */
    public final static String ZONE_TYPE_B = "B";
    /**
     * 库区类型-拆零拣选区
     */
    public final static String ZONE_TYPE_C = "C";
    /**
     * 库区类型-预留
     */
    public final static String ZONE_TYPE_D = "D";
    /**
     * 库区类型-出库集货区
     */
    public final static String ZONE_TYPE_F = "F";
    /**
     * 库区类型-入库暂存区
     */
    public final static String ZONE_TYPE_G = "G";
    /**
     * 库区类型-出库暂存区
     */
    public final static String ZONE_TYPE_H = "H";

    /**
     * 站台类型-入库
     */
    public final static String STN_TYPE_SI = "SI"; // 入库
    /**
     * 站台类型-出库
     */
    public final static String STN_TYPE_SO = "SO"; // 出库
    /**
     * 站台类型-整托出
     */
    public final static String STN_TYPE_PLT = "PLT"; //整托出
    /**
     * 站台类型-箱体出
     */
    public final static String STN_TYPE_CTN = "CTN"; //箱体出

    public final static String LOCATION_TYPE_HW="HW";
    public final static String LOCATION_TYPE_ST="ST";

    public static final String EMPTY_SPU_NO = "100000000000";
    public static final String EMPTY_SPU_NAME = "空容器";
}
